import { post } from '@/utils/request'

export default {
  pageOtherList: query => post('/api/admin/question/pageOther', query),
  pageList: query => post('/api/admin/question/page', query),
  edit: query => post('/api/admin/question/edit', query),
  select: id => post('/api/admin/question/select/' + id),
  selectTm: id => post('/api/admin/question/selectQuestionById/' + id),
  deleteQuestion: id => post('/api/admin/question/delete/' + id),
  selectType: query => post('/api/admin/dataDictionary/selectMQ'),
  selectAllChapter: query => post('/api/admin/dataDictionary/selectAllChapter'),
  uploadFile: params => post('/api/admin/upload/file', params),
  uploadFileJson: params => post('/api/admin/batchUpload/file', params)
}
